package com.squeekeek.util.qrcode.Core;

import java.util.List;

/**
 * <p>
 * Class for the information encoded in a QR Code. This also includes
 * an error message if the QR Code is not decoded properly.
 * </p>
 * 
 * @author Carl
 *
 */
public class QRCode {
	private int version;
	private double moduleWidth;
	private List <Byte> dataStream;
	private List <Byte> errorStream;
	private String errorCorrection;
	private String errorMessage = null;
	
	public String getErrorCorrection() {
		return errorCorrection;
	}
	public void setErrorCorrection(byte f) {
		this.errorCorrection = QRErrorCorrection.ecFmtToString(f);
	}
	
	public double getModuleWidth() {
		return moduleWidth;
	}
	
	public void setModuleWidth(double moduleWidth) {
		this.moduleWidth = moduleWidth;
	}
	
	public String getErrorMessage() {
		return errorMessage;
	}
	
	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
	
	public int getVersion() {
		return version;
	}
	
	public void setVersion(int version) {
		this.version = version;
	}
	
	public List <Byte> getDataStream() {
		return dataStream;
	}
	
	public void setDataStream(List <Byte> dataStream) {
		this.dataStream = dataStream;
	}
	
	public List <Byte> getErrorStream() {
		return errorStream;
	}
	
	public void setErrorStream(List <Byte> errorStream) {
		this.errorStream = errorStream;
	}
}
